<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<html>
<head>
    <script type="text/javascript">
        var grid;
        $(document).ready(function() {
            grid = $("#servicemchntTableId").jpgrid({
                url: "servicemchntListJson.do",
                columns: [
                    {title: "所属机构", field: "INST_NAME",width:200},
                    {title: "会员编号", field: "MCHNT_CD",width:100},
                    {title: "终端号", field: "TERM_ID",width:100},
                    {title: "商户名称", field: "MCHNT_NM",width:180},
                    {title: "业务系统商户号", field: "SERVICE_MCHNT_CD",width:200},
                    {title: "业务系统终端号", field: "SERVICE_TERM_ID",width:280},
                ]
            });
        });

        function doSearch() {
            grid.load({
                mchnt_cd: $('#mchnt_cd').textbox("getValue"),
                mchnt_nm: $('#mchnt_nm').textbox("getValue"),
                ins_cd: $('#ins_cd').textbox("getValue"),
                ins_cn_nm: $('#ins_cn_nm').textbox("getValue"),
                service_mchnt_cd: $('#service_mchnt_cd').textbox("getValue")
            });
        }
    </script>
</head>
<body class="easyui-layout list_body"  >
<form id="servicemchntForm" name="servicemchntForm">
    <div class="list_body_north" data-options="region:'north'"  border="false" >
        <!-- 查询表单 -->
        <div  class="datagrid-toolbar" border="false"  >
            <span>会员编号:</span>
            <input type="text" id="mchnt_cd" name="mchnt_cd" class="easyui-textbox"/>
            <span>商户名称:</span>
            <input type="text" id="mchnt_nm" name="mchnt_nm" class="easyui-textbox"/>
            <span>机构号:</span>
            <input id="ins_cd" type="text" name="ins_cd"  class="easyui-textbox"  >
            <span>机构名称:</span>
            <input id="ins_cn_nm" type="text" name="ins_cn_nm"  class="easyui-textbox"  >
            <span>业务系统商户号:</span>
            <input type="text" id="service_mchnt_cd" name="service_mchnt_cd" class="easyui-textbox"/>
            <a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a>
            <a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>
        </div>
        <!-- 自定义标签工具栏 -->
        <jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>
    </div>
    <div data-options="region:'center'" border="false"  class="list_body_center">
        <!-- 表格 -->
        <table id="servicemchntTableId" fit="true"></table>
    </div>
</form>
</body>
</html>
